package com.gopay.common.domain.ic;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 内部对账交易码配置
 * @author dong-wang5@hnair.com
 * @date 2018-05-24 15:42:27
 */
@Entity
@Table(name = "IC_SUCCESS_CONFIG")
public class IcSuccessConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(name = "IC_SUCCESS_CONFIG_GENERATOR", sequenceName = "IC_SUCCESS_CONFIG_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "IC_SUCCESS_CONFIG_GENERATOR")
    @Column(name = "ID")
    private Long id;

    /**
     * 交易码
     */
    @Column(name = "INT_TXN_CD", length = 8 , nullable = false)
    private String intTxnCd;

    /**
     * 交易码描述
     */
    @Column(name = "INT_TXN_NAME", length = 32)
    private String intTxnName;

    /**
     * 记账点
     */
    @Column(name = "ACCOUNTING_POINT", length = 8)
    private String accountingPoint;

    /**
     * 付款渠道拼接
     */
    @Column(name = "PAY_CHANNEL", length = 64)
    private String payChannel;

    /**
     * 分组
     */
    @Column(name = "GROUPS", length = 16 ,nullable = false)
    private String groups;

    /**
     *  备注
     */
    @Column(name = "MEMO", length = 128)
    private String memo;

    /**
     * 修改者
     */
    @Column(name = "USER_NAME", length = 32)
    private String userName;

    /**
     * 创建日期
     */
    @Column(name = "GMT_CREATE")
    @Temporal(TemporalType.TIMESTAMP)
    private Date gmtCreate;

    /**
     * 最后修改日期
     */
    @Column(name = "GMT_MODIFY")
    @Temporal(TemporalType.TIMESTAMP)
    private Date gmtModify;

    /**
     * 乐观锁版本号
     */
    @Version
    @Column(name = "VERSION")
    private Long version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIntTxnCd() {
        return intTxnCd;
    }

    public void setIntTxnCd(String intTxnCd) {
        this.intTxnCd = intTxnCd;
    }

    public String getIntTxnName() {
        return intTxnName;
    }

    public void setIntTxnName(String intTxnName) {
        this.intTxnName = intTxnName;
    }

    public String getAccountingPoint() {
        return accountingPoint;
    }

    public void setAccountingPoint(String accountingPoint) {
        this.accountingPoint = accountingPoint;
    }

    public String getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(String payChannel) {
        this.payChannel = payChannel;
    }

    public String getGroups() {
        return groups;
    }

    public void setGroups(String groups) {
        this.groups = groups;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
    
    
}
